#write in 2019,6,16
# write by lidabao
import requests
import re

kv = {
    'User-Agent': 'Mozilla/5.0 (iPhone \
                             CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'
}


def get():
    res = requests.get("https://www.cnblogs.com/", headers=kv)
    res.encoding = res.apparent_encoding
    p=re.compile(r'/p')
    urls = p.findall(res.text)
    print(urls)

get()
